﻿CREATE TRIGGER ProjectStages_Tracking_Delete
ON [dbo].[ProjectStages] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.ProjectStages_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.ProjectStages_Tracking s JOIN DELETED i
    ON s.ProjectStageID = i.ProjectStageID
END














